import request from "../../../utils/request";
import { service } from "../index";

// 获取第三方大屏列表
export function getScreenList(query) {
  return request({
    url: service + "/thirdPartyScreen/list",
    method: "post",
    data: query,
  });
}
// 第三方大屏新增
export function thirdPartyScreenAdd(query) {
  return request({
    url: service + "/thirdPartyScreen/add",
    method: "post",
    data: query,
  });
}
// 第三方大屏更新
export function thirdPartyScreenUpdate(query) {
  return request({
    url: service + "/thirdPartyScreen/update",
    method: "post",
    data: query,
  });
}
/**
 * 删除第三方屏幕
 *
 * @param query 请求参数
 * @returns Promise
 */
export function thirdPartyScreenDelete(query) {
  return request({
    url: service + "/thirdPartyScreen/delete",
    method: "post",
    data: query,
  });
}
/**
 * 获取第三方屏幕详情
 *
 * @param id 第三方屏幕ID
 * @returns 返回请求结果
 */
export function thirdPartyScreenDetail(id) {
  return request({
    url: service + "/thirdPartyScreen/detail?id=" + id,
    method: "get",
  });
}
/**
 * 第三方大屏删除检验
 *
 * @param query 查询参数
 * @returns Promise对象，表示异步操作结果
 */
export function checkUserBind(query) {
  return request({
    url: service + "/thirdPartyScreen/checkUserBind",
    method: "post",
    data: query,
  });
}
/**
 * 根据租户ID查询行业信息
 *
 * @param tenantId 租户ID
 * @returns 行业信息
 */
export function queryIndustryInfoByTenantId(tenantId) {
  return request({
    url:
      service +
      "/industry/conf/queryIndustryInfoByTenantId?tenantId=" +
      tenantId,
    method: "get",
  });
}
